package com.java;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

import com.java.common.boot.listener.ApplicationStartingEventListener;
import com.java.common.constant.ProjectConstants;

/**
 * 启动程序
 * 
 * @author Administrator
 * @date 2021年1月23日
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ComponentScan(basePackages = { ProjectConstants.PROJECT_PACKAGE, "io.silks.plugin" })
public class ApplicationServer {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ApplicationServer.class);
        app.addListeners(new ApplicationStartingEventListener());
        app.run(args);
    }

}